package com.econ.powercloud.ems.dal.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 储能站并离网组合记录表
 * @author jwc
 * @since 2022/08/26
 */
@Data
@Accessors(chain = true)
@TableName(value = "ems_grid_record_group")
public class EmsGridRecordGroup {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * ems_grid_record表id
     */
    @TableField(value = "record_id")
    private Long recordId;

    /**
     * 所属组合id
     */
    @TableField(value = "process_group_id")
    private Long processGroupId;

    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 按钮名称
     */
    @TableField(value = "button_name")
    private String buttonName;

    /**
     * 步骤序号
     */
    @TableField(value = "order_num")
    private Integer orderNum;

    /**
     * 状态，1：未开始，2：进行中，3：成功，4：失败，5：已终止，6：待确认成功
     */
    @TableField(value = "`status`")
    private Integer status;

    /**
     * 记录日志
     */
    @TableField(value = "`logs`")
    private String logs;

    /**
     * 开始时间
     */
    @TableField(value = "begin_time")
    private Date beginTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    private Date endTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}